package com.shlh.saas.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.ibatis.type.Alias;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 邮件套餐实体类，对应数据库email_packages表
 */
@TableName("email_packages")
@Data
public class EmailPackage {
    /**
     * 套餐ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    /**
     * 套餐名称
     */
    @TableField("name")
    private String name;
    
    /**
     * 套餐价格
     */
    @TableField("price")
    private BigDecimal price;
    
    /**
     * 邮件数量
     */
    @TableField("email_count")
    private Integer emailCount;
    
    /**
     * 套餐等级
     */
    @TableField("level")
    private Integer level;
    
    /**
     * 套餐有效期(天数)
     */
    @TableField("duration")
    private Integer duration;
    
    /**
     * 套餐描述
     */
    @TableField("description")
    private String description;
    
    /**
     * 创建时间
     */
    @TableField("created_at")
    private LocalDateTime createdAt;
    
    /**
     * 更新时间
     */
    @TableField("updated_at")
    private LocalDateTime updatedAt;
    
    /**
     * 是否删除
     */
    @TableField("is_deleted")
    private Integer isDeleted;
} 